<!--
 * @Author: hfqf123@126.com
 * @Date: 2022-12-28 20:31:38
 * @LastEditors: user.email
 * @LastEditTime: 2023-01-19 15:22:17
 * @FilePath: /spemqtt/client/index.html
 * @Description: 
 * 
 * Copyright (c) 2023 by hfqf123@126.com, All Rights Reserved. 
-->


<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>mqtt-client</title>
    <link rel="stylesheet" type="text/css" href="./css/display.css">
    <script src="./js/mqtt.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="./js/mqtt-manager.js" type="text/javascript" charset="utf-8"></script>
    <script src="./js/jquery-3.4.1.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="./js/device-uuid.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="./js/mqtt-httpposter.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
    <div class="counter">

    </div>
</body>
<script>
    $(document).ready(function() {
        var client = mqtt.connect("wss://test.mosquitto.org:8081");
        var uuid = new DeviceUUID().get();
        var httpposter = new MQTTHttpPoster('20', uuid, 'https://lz-cs.lanzhitiyu.com')
        var mqttManager = new MQTTManager()
        mqttManager.initMQTTSDK(client, httpposter, null, (state, receivedMsg) => {

        })
    });
</script>

</html>